//
//  DataTool.h
//  mengbutou
//
//  Created by Jiafei Wei on 16/7/6.
//  Copyright © 2016年 Jiafei Wei. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface DataTool : NSObject
+(NSString *)getStringDate:(NSDate *)date;
+(NSDate *)dateFromString:(NSString *)dateString;
+(long)getTimestamp:(NSDate *)date;
+(NSDate *)timestampChangeToDate:(long)timeStamp;
+(NSString *)getStringTimestamp:(NSDate *)date;
+(NSString *)timestampChaStringDate:(long)timeStamp;
+(BOOL)dateCompareToNowDate:(NSDate *)date;
+(int)compareOneDay:(NSDate *)oneDay withAnotherDay:(NSDate *)anotherDay;
+(NSDateComponents *)getDateDifference:(NSDate *)date withAnotherDay:(NSDate*)anotherDay by:(int)type;
+(NSString *)timestampChaStringDate2:(long)timeStamp;

+(NSString *)tampChangeToHour:(int)t;

+(NSDateComponents *)getNSDateComponents:(long)time;
@end
